package com.zhc.dejingapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 水处理派工单
 * </p>
 *
 * @author zhc
 * @since 2024-10-16
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("qing_boilingreport")
@ApiModel(value = "QingBoilingreportEntity对象", description = "水处理派工单")
public class QingBoilingreportEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "main_id", type = IdType.AUTO)
    private Long mainId;

    @ApiModelProperty("数据ID")
    @TableField("applyId")
    private Long applyId;

    @ApiModelProperty("水煮派工单编号")
    @TableField("boiling_send_work_code")
    private String boilingSendWorkCode;

    @ApiModelProperty("水煮报工单编号")
    @TableField("boiling_report_code")
    private String boilingReportCode;

    @ApiModelProperty("注塑派工单应用编号")
    @TableField("zs_send_work_code")
    private String zsSendWorkCode;

    @ApiModelProperty("注塑报工单应用编号")
    @TableField("zs_inject_report_code")
    private String zsInjectReportCode;

    @ApiModelProperty("工序计划应用编号")
    @TableField("process_plan_code")
    private String processPlanCode;

    @ApiModelProperty("生产批号(ERP)")
    @TableField("batch_num")
    private String batchNum;

    @ApiModelProperty("注塑机台")
    @TableField("eq_code")
    private String eqCode;

    @ApiModelProperty("水煮箱号")
    @TableField("boiling_box_code")
    private String boilingBoxCode;

    @ApiModelProperty("工序名称")
    @TableField("process_name")
    private String processName;

    @ApiModelProperty("水处理任务状态")
    @TableField("boiling_status")
    private String boilingStatus;

    @ApiModelProperty("存货编号")
    @TableField("inv_code")
    private String invCode;

    @ApiModelProperty("存货名称")
    @TableField("inv_name")
    private String invName;

    @ApiModelProperty("规格型号")
    @TableField("inv_type")
    private String invType;

    @ApiModelProperty("水煮框号")
    @TableField("boiling_frame_code")
    private String boilingFrameCode;

    @ApiModelProperty("单框数量")
    @TableField("each_carton_qty")
    private Integer eachCartonQty;

    @ApiModelProperty("派工数")
    @TableField("send_work_num")
    private Integer sendWorkNum;

    @ApiModelProperty("生产人员编号")
    @TableField("psn_code")
    private String psnCode;

    @ApiModelProperty("生产人员名称")
    @TableField("psn_name")
    private String psnName;

    @ApiModelProperty("班次")
    @TableField("classes_name")
    private String classesName;

    @ApiModelProperty("标准工时（小时）")
    @TableField("standard_working_hour")
    private String standardWorkingHour;

    @ApiModelProperty("水煮开始时间")
    @TableField("boiling_start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime boilingStartTime;

    @ApiModelProperty("预计结束时间")
    @TableField("predict_boiling_end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime predictBoilingEndTime;

    @ApiModelProperty("实际结束时间")
    @TableField("real_end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime realEndTime;

    @ApiModelProperty("剩余时长")
    @TableField("remaining_time")
    private String remainingTime;

    @ApiModelProperty("水煮时长")
    @TableField("boiling_time")
    private String boilingTime;

    @ApiModelProperty("超时")
    @TableField("overtime")
    private String overtime;


}
